﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace SequenceAssembler
{
    class SequenceCell:SimpleSequenceCell, StorableCell
    {
        public  double Distance = -1;
        public  long Parent = -1;

        public SequenceCell()
        {
        }

        public SequenceCell(long id)
            : base(id)
        {
        }


        new public int GetBinarySize()
        {
            int size = base.GetBinarySize();
            size += sizeof(long);//m_distance
            size += sizeof(long);//m_parent
            return size;
        }

        new public void WriteBinary(BinaryWriter bw)
        {
            base.WriteBinary(bw);
            bw.Write(Distance);
            bw.Write(Parent);
        }

        new public void ReadBinary(BinaryReader br)
        {
            base.ReadBinary(br);
            Distance = br.ReadDouble();
            Parent = br.ReadInt64();
        }

    }
}
